package com.lee.single.starter.redis;

import org.springframework.data.redis.core.RedisTemplate;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

/**
 * 存储数据用Redis
 * @author Lee
 * @date 2020/8/6
 */
public class RedisComponent extends BaseRedisComponent {

    @Resource(name = "redisTemplate")
    private RedisTemplate<String, String> redisTemplate;

    @PostConstruct
    private void init() {
        setRedisTemplate(redisTemplate);
    }

}
